package com.boil.qz.safekavass.shiro.session.mgt.eis;

import java.io.Serializable;

import com.boil.util.Utils;
import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.eis.SessionIdGenerator;

/**
 * Created by ChenYong on 2017-05-03.
 * <br>
 * <p>
 * 我的 Session ID 生成器。
 */
public class MySessionIdGenerator implements SessionIdGenerator {
    @Override
    public Serializable generateId(Session session) {
        return Utils.getUuid();
    }
}